package com.future.allUtils.constants;


/**
 * 权限常量类，定义系统所有权限编码
 */
public class PermissionConstants {

    // 角色标识
    public static final int ROLE_STUDENT = 1;          // 学生
    public static final int ROLE_TEACHER = 2;          // 教师
    public static final int ROLE_PSYCHOLOGIST = 3;     // 心理医生
    public static final int ROLE_ADMIN = 4;            // 超级管理员

    // 学生权限
    public static final String STUDENT_LOGIN = "student:login";                      // 登录
    public static final String STUDENT_REGISTER = "student:register";                // 注册
    public static final String STUDENT_HEALTH_FILL = "student:health:fill";          // 填写健康问卷
    public static final String STUDENT_HEALTH_VIEW = "student:health:view";          // 查看个人健康数据
    public static final String STUDENT_CHAT_CLASS = "student:chat:class";            // 参与班级聊天室
    public static final String STUDENT_CHAT_PRIVATE = "student:chat:private";        // 发起私聊
    public static final String STUDENT_ARTICLE_PUBLISH = "student:article:publish";  // 发布文章
    public static final String STUDENT_QUESTION_PUBLISH = "student:question:publish";// 发布问题
    public static final String STUDENT_ANSWER_PUBLISH = "student:answer:publish";    // 回答问题

    // 教师权限
    public static final String TEACHER_STUDENT_MANAGE = "teacher:student:manage";    // 管理班级学生信息
    public static final String TEACHER_QUESTIONNAIRE_PUBLISH = "teacher:questionnaire:publish"; // 发布问卷
    public static final String TEACHER_HEALTH_VIEW = "teacher:health:view";          // 查看班级健康数据
    public static final String TEACHER_CHAT_CLASS = "teacher:chat:class";            // 使用班级聊天室
    public static final String TEACHER_ARTICLE_PUBLISH = "teacher:article:publish";  // 发布文章
    public static final String TEACHER_ARTICLE_REVIEW = "teacher:article:review";    // 审核文章
    // 心理医生权限
    public static final String PSYCHOLOGIST_HEALTH_VIEW = "psychologist:health:view";// 查看全校心理健康数据
    public static final String PSYCHOLOGIST_QUESTIONNAIRE_PUBLISH = "psychologist:questionnaire:publish"; // 发布问卷
    public static final String PSYCHOLOGIST_CONSULT = "psychologist:consult";        // 提供在线心理咨询
    public static final String PSYCHOLOGIST_ARTICLE_PUBLISH = "psychologist:article:publish"; // 发布文章

    // 超级管理员权限
    public static final String ADMIN_USER_MANAGE = "admin:user:manage";              // 用户账号管理
    public static final String ADMIN_ANNOUNCEMENT_PUBLISH = "admin:announcement:publish";        // 发布通知公告
    public static final String ADMIN_CONTENT_AUDIT = "admin:content:audit";          // 审核用户发布的内容
    public static final String ADMIN_ARTICLE_REVIEW = "admin:article:review";        // 审核文章
}
